-- GENERATED SPELL FOR [Grimtotem Sorcerer] --


function spell0_11913(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(20802,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11913', 3000, 1)
end

function spell1_11913(pUnit, Event) --@Rejuvenation,Heal--
pUnit:FullCastSpellOnTarget(12160,pUnit)
pUnit:RegisterEvent('Sorts_11913', 12000, 1)
end

function Sorts_11913(pUnit, Event)
local choix_sorts_11913 = math.random(0, 1)
if choix_sorts_11913 == 0 then
pUnit:RegisterEvent('spell0_11913', 1, 1)
end
if choix_sorts_11913 == 1 then
pUnit:RegisterEvent('spell1_11913', 1, 1)
end
end

function mob11913_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11913', math.random(1500, 3000), 1)
end

function mob11913_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11913_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11913_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11913, 1, 'mob11913_Action')
RegisterUnitEvent(11913, 2, 'mob11913_Leave')
RegisterUnitEvent(11913, 3, 'mob11913_Kill')
RegisterUnitEvent(11913, 4, 'mob11913_Die')
